package leetcode.string;

import leetcode.string.common.StringUtils;

class Solution243 {
    public int shortestDistance(String[] wordsDict, String word1, String word2) {
        return StringUtils.shortestDistance(wordsDict, word1, word2);
    }
}

public class leetcode243 {
    public static void main(String[] args) {
        Solution243 solution243 = new Solution243();
        String[] wordsDict = {"practice", "makes", "perfect", "coding", "makes"};
        System.out.println(solution243.shortestDistance(wordsDict, "coding", "practice"));
    }
}
